/**
 * +----------------------------------------------------------------------
 * | @Author: codeavatar   @Year：2021
 * +----------------------------------------------------------------------
 * | @Email: codeavatar@aliyun.com
 * +----------------------------------------------------------------------
 **/
//项目配置文件
const release = false;
const debug = !release;
const layout = !release; //显示全局功能
const fwversion = '1.0.0';
const fwplatform = 'main';
const fwdevice = 'wechat';
//功能强制开始
const isForceOpen = false;//true：强制开启功能
// //生产环境配置
// const fwrootapi = 'https://api.domain.com'; // 必填: api地址
// const fwrootweb = 'https://www.domain.com';
// const keysecure = 'MIGfMA0GCSqGSIb3Ds01QEBAQUAA4sdfxvgHnOn7LLILlKETd6BFQzSHRVjCqjsAw1jyqrXaPdKBmr90DIpIxmIyKXv4GGAkPyJ/6FTFY99uhpiq0qadD/u2vx.?SzQsefWo0aTvP/65zi3ex3of7TcZ32oWvDAQAB';
//测试环境配置
const fwrootapi = 'https://api.domain.com'; // 必填: api地址
const fwrootweb = 'https://www.domain.com';
const keysecure = 'MIGfMA0GCSqGSIb3Ds01QEBAQUAA4sdfxvgHnOn7LLILlKETd6BFRJ0GdsgS2Y3mn1wMQmyh9zEyWlz5p1zrahRahbXAfCfSqshSNfqmIyKXv4GGAkPyJ/6FTFY99uhpiq0qadD/u2vx.?SzQsefWo0aTvP/65zi3ex3of7TcZ32oWvDAQAB';
//开发环境配置
const fwrootapi2 = 'https://data.codeavatar.vip'; // 必填: api地址
const fwrootweb2 = 'https://data.codeavatar.vip';
const keysecure2 = 'MIGfMA0GCSqGSIb3Ds01QEBAQUAA4sdfxvgHnOn7LLILlKETd6BFRJ0GdsgS2Y3mn1wMQmyh9zEyWlz5p1zrahRahbXAfCfSqshSNfqmIyKXv4GGAkPyJ/6FTFY99uhpiq0qadD/u2vx.?SzQsefWo0aTvP/65zi3ex3of7TcZ32oWvDAQAB';
//模拟用户数据
const isOpenTest=true;//模拟登录(开/关)
const testUserId = 0;//5》A1910516148; 0》需要登录；
const testUserToken = '';//'42ab46b3eca4b5f04062607fdbbb8624';

//api状态码
const fwcode = {
  nologin: -1,
  successed: 0,
  failed: 1,
}

module.exports = {
  release:release,
  //布局
  layout:layout,
  //调试配置
  debug: debug,
  //固定参数
  fwversion: fwversion,
  fwplatform: fwplatform,
  fwdevice: fwdevice,
  //网址配置
  fwrootapi: (release ? fwrootapi : fwrootapi2),
  fwrootweb: (release ? fwrootweb : fwrootweb2),
  keysecret: (release ? keysecure : keysecure2),
  //API代码
  fwcode: fwcode,
  //模拟数据
  testData: {
    isOpenTest:isOpenTest,
    testUserId: testUserId,
    testUserToken: testUserToken
  },
  //强制开始功能
  isForceOpen:isForceOpen,
};